home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 19 / Amiga Plus Leser CD 19.iso / Tools / MorphOS / cvs-1.11.2 / source / amiga / ssh / rsa.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-18  |  763 b   |  37 lines

  1. /*
  2.  * RSA key structure
  3.  *
  4.  * $Id$
  5.  *
  6.  * :ts=4
  7.  */
  8.  
  9. #ifndef _RSA_H
  10. #define _RSA_H
  11.  
  12. /****************************************************************************/
  13.  
  14. #ifdef _SSH
  15. #define makekey        SSH_makekey
  16. #define rsaencrypt    SSH_rsaencrypt
  17. #endif /* _SSH */
  18.  
  19. /****************************************************************************/
  20.  
  21. typedef struct
  22. {
  23.     unsigned int bits;
  24.     unsigned int bytes;
  25.     void *modulus;
  26.     void *exponent;
  27. } R_RSAKey;
  28.  
  29. /****************************************************************************/
  30.  
  31. int makekey(unsigned char *data, R_RSAKey *result, unsigned char **keystr);
  32. void rsaencrypt(unsigned char *data, int length, R_RSAKey *key);
  33.  
  34. /****************************************************************************/
  35.  
  36. #endif /* _RSA_H */
  37.